package com.xiaoma.mvi.func

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes

operator fun ViewGroup.get(@LayoutRes layoutRes: Int): View =
    LayoutInflater.from(context)
        .inflate(layoutRes, this, false)